package com.pxmeta.party.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@TableName("kt_activity_ad_astra")
@ApiModel(value = "星际探险", description = "星际探险")
@Data
public class ActivityAdAstra {

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty("倍率")
    private Integer magnification;

    @ApiModelProperty(value = "概率")
    private Double probability;

    @ApiModelProperty("当前数量")
    @TableField(exist = false)
    private Integer currentCount= 0;


    @ApiModelProperty(value = "逾期数")
    @TableField(exist = false)
    private Integer overdueCount;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updateTime;

}
